package com.amit.spring.ioc;

import java.util.Set;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class Lab2 {
	
	public static void main(String[] args) {
		
	ApplicationContext ctx=new ClassPathXmlApplicationContext("applicationContext.xml");
	
	Customer c=(Customer) ctx.getBean("cust");
	System.out.println(c.getCid());
	System.out.println(c.getCname());
	System.out.println(c.getEmails());
	System.out.println(c.getPhones());
    System.out.println(c.getRefs());
    System.out.println(c.getMyProperties());
    System.out.println(c.getAddress());
    
    Set<Order> orders=c.getOrders();
    for(Order o:orders)
    {
    	System.out.println(o);
    }
		
	}
	
	

}
